package com.tanger.im.service.members;

import com.tanger.common.result.ActionResult;
import com.tanger.im.entity.ImUserGroupMembers;

import java.util.List;

/**
 * @Description TODO
 * @Author Hchenbin
 * @Date 2023-12-25 15:36
 * @Version 1.0
 */
public interface IMUserGroupMembersService {

    List<ImUserGroupMembers> findAll(Long groupId);

    List<Long> findAllByUserId(Long userId);

    ActionResult exit(Long groupId, Long userId);

    ActionResult transfer(Long groupId, Long userId);

    ActionResult delete(Long groupId, List<Long> userIds);

    ActionResult put(Long groupId, Long userId);

    ActionResult prohibition(Long groupId, Long userId);

    ActionResult prohibitionAll(Long groupId);

    ActionResult save(List<ImUserGroupMembers> members);

    ActionResult deleteByGroupId(Long groupId);
}
